<!-- 设备-->
<template>
	<view class="equipmentBox">
		<view v-for="(item,index) in useWeb.allResObj" :key="index">
		<detailsItem :itemObj="item"/>
		</view>
	</view>
</template>

<script setup>
	import {
		useWebsocket
	} from "@/store/websocket.js";
	const useWeb = useWebsocket()
	import {
		onMounted,
		destroyed,
		nextTick
	} from "vue";
	import {
		onLoad,
		onShow,
		onUnload
	} from "@dcloudio/uni-app";
	import detailsItem from '@/components/detailsItem/detailsItem.vue'
	onShow(() => {
		nextTick(() => {
			uni.setPageOrientation({
				orientation: 'portrait'
			});
		})

	})
</script>
<style>
	page {
		background-color: #F2F2F2;
	}
</style>
<style lang="scss" scoped>
	.equipmentBox{
		padding: 24rpx 16rpx 0 16rpx;
		box-sizing: border-box;
	}
</style>